<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE>
<html>
<head>

<title>My JSP 'add.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<title>更新帖子</title>
<c:import url="common.jsp"></c:import>

	<link rel="stylesheet" href="${zts}/statics/kindeditor/themes/default/default.css"/>
	<script charset="utf-8" src="${zts}/statics/kindeditor/kindeditor-min.js"></script>
	<script charset="utf-8" src="${zts}/statics/kindeditor/lang/zh_CN.js"></script>
	<script>
		var editor;
		KindEditor.ready(function (K) {
			editor = K.create('textarea[name="content"]', {
				allowFileManager: true
			});
		});
		function getIM(){
			alert(editor.html());
			$('textarea[name="content"]').html(editor.html());
			$("#form1").submit();
		}
	</script>
</head>

<body>
	<!-- 导航 -->
	<c:import url="nav.jsp"></c:import>
	<div style="text-align: center; width: 800px; margin: 0 auto">
		<form action="updatesave.action" method="post">
			<input name="id" type="hidden" value="${invitation.id }" />
			<div class="form-group">
				<label for="title" style="font-size: large;font-weight: bold">标题</label>
				<input type="text" class="form-control"
					id="title" name="title" placeholder="请输入名称"
					value="${invitation.title }">
			</div>
			<div class="form-group">
				<label for="summary" style="font-size: large;font-weight: bold">概要</label>
				<input type="text" class="form-control"
					id="summary" name="summary" placeholder="请输入名称"
					value="${invitation.summary }">
			</div>
			<div class="form-group">
				<label for="author" style="font-size: large;font-weight: bold">作者ID</label>
				<input type="text" class="form-control"
					id="author" name="author" placeholder="请输入名称"
					value="${invitation.uid }" readonly="readonly">
			</div>
			<div class="form-group">
            <textarea name="content" style="width: 800px;height: 500px">
				${invitation.content }
            </textarea>
			</div>
			<button type="submit" class="btn btn-primary">UPDATE</button>
		</form>
	</div>
</body>
</html>
